cmake_minimum_required(VERSION 3.21)

project(test-neteq)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -O2 -Wall -fPIC -fno-rtti")  #设置c++的编译选项

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/..
    ${CMAKE_CURRENT_SOURCE_DIR}/third_party/opus/include
)

set(NETEQLIB  
${CMAKE_CURRENT_SOURCE_DIR}/../build/libwebrtc-neteq.so
${CMAKE_CURRENT_SOURCE_DIR}/../third_party/opus/build/libopus.so   
)

add_executable(test_neteq1 test_neteq1.c audio-neteq.cc)
target_link_libraries(test_neteq1 ${NETEQLIB})

add_executable(test_neteq2 test_neteq2.c audio-neteq.cc)
target_link_libraries(test_neteq2 ${NETEQLIB})
